@import "base.scss";

.product-detail-main{
  padding-bottom: 50px;
  height: auto;

  //*****快捷菜单*****
  .nav{
    position: fixed;
    top:0;
    left:0;
    background-color: #FCFCFC;
    width: 100%;
    height: 40px;
    line-height: 40px;
    opacity: 0;
    text-align: center;
    z-index:10;

    a{
      color: #757575;

      .iconfont{
        color: #7E82F6;
      }
    }
  }
  //*****快捷菜单*****

  //*****轮播*****
  .lunbo{
    //position: relative;
    width: 100%;

    .van-swipe{
      height: 100%;

      .custom-indicator{
        //position: absolute;
        bottom: 10px;
        right: 10px;
        width: 32px;
        height: 16px;
        background-color: #8B8B88;
        color: #fff;
        font-size: 12px;
        border-radius:10px;
      }
    }
  }
  //*****轮播*****

  //*****头部*****
  .title{

    //正常进入
    .price{
      padding:0 15px;
      box-sizing: border-box;
      height: 36px;
      line-height: 47px;

      p{
        height: 100%;
        font-size: 28px;
        color: #F54E4E;

        i{
          font-size: 20px;
          font-style: normal;
        }

        del{
          font-size: 16px;
          color: #999AA3;
        }
      }
    }
    //正常进入

    //秒杀进入
    .seckill{
      height: 58px;

      .seckill-price{
        background: -webkit-linear-gradient(right, #FF6D97, #F54E4E);
        padding:0 15px;
        box-sizing: border-box;
        color: #fff;

        .price-now{
          font-size: 44px;

          i{
            font-size: 32px;
            font-style: normal;
          }
        }

        .price-old{
          display: flex;
          flex-direction: column;
          align-items: end;
          margin:10px 0 0 8px;
        }
      }

      .time{
        background-color: #FFF9E3;
        text-align: center;
        font-size: 12px;

        p{
          height: 30px;
        }
        p:nth-child(1){
          line-height: 30px;
          color: #F54E4E;

        }

        p:nth-child(2){
          color: #F54E4E;

          span{
            background-color: #F54E4E;
            padding:3px 4px;
            border-radius:3px;
            color: #fff;
          }
        }
      }
    }
    //秒杀进入
  }

  .box{
    display: flex;
    height: 70px;
    width: 100%;
    color: #45454D;
    font-size: 16px;
    padding: 15px;
    box-sizing: border-box;

    .name{
      font-weight: bold;
    }

    .share{
      display: flex;
      flex-direction: column;
      margin-left: 10%;
      color: #7A7B82;
      font-size: 12px;

      i{
        font-size: 24px;
      }
    }
  }
  //*****头部*****

  //*****单元格*****
  .cell-box{
    padding:0 15px;
    box-sizing: border-box;

    li{
      height: 40px;
      line-height: 40px;

      .van-col:nth-child(1){
        color: #7A7B82;
      }

      .van-col:nth-child(2) .iconfont{
        color: #7E82F6;
      }

      .van-col:nth-child(3){
        color: #B3B3B3;
      }
    }
  }
  //*****单元格*****

  //*****商品评价*****
  .reviews{
    padding:0 0 0 15px;
    box-sizing: border-box;

    .title{
      width: 100%;
      height: auto;
      padding: 0 15px 0 0;
      box-sizing: border-box;

      .van-row{
        height: 40px;
        line-height:40px;

        .van-col:nth-child(3),
        .van-col:nth-child(4){
          color: #999AA3;
          font-size: 13px;
        }

        .van-col:nth-child(4){
          color: #B3B3B3;
          }
        }


      .target{
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        padding-bottom: 14px;

        span{
          display: inline-block;
          background-color: #FDF1E0;
          border-radius:12px;
          padding:2px 9px;
          margin-right:12px;
        }
      }
    }

    .reviews-one{
      margin-top: 12px;
      line-height: 24px;
      padding-right:12px;
      box-sizing: border-box;

      .van-row {
        width: 100%;

        .van-col:nth-child(1) {
          img.head {
            width: 24px;
            height: 24px;
            border-radius: 50%;
          }
        }

        .van-col:nth-child(2) {
          color: #999AA3;
        }
      }

      .review-text{
        line-height: 18px;
        clear: both;
      }

      .review-img{
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;


        img{
          width: 23%;
          height: 100px;
          margin-bottom: 10px;
        }

        .van-col{
          margin-right: 5%;

          img{
            width: 100%;
          }
        }
      }

      .model{
        font-size: 12px;
        color: #999AA3;
        padding-bottom: 8px;
      }
    }
  }
  //*****商品评价*****

  //*****为你推荐*****
  .recommended{
    padding:0 0 0 15px;
    box-sizing: border-box;

    .title {
      width: 100%;
      height: auto;
      padding: 0 15px 0 0;
      box-sizing: border-box;

      .van-row {
        height: 40px;
        line-height: 40px;

        .van-col:nth-child(3),
        .van-col:nth-child(4) {
          color: #999AA3;
          font-size: 13px;
        }

        .van-col:nth-child(4) {
          color: #B3B3B3;
        }
      }
    }

    .product-box{
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      width: 100%;
      padding-right: 15px;
      box-sizing: border-box;

      div{
        display: inline-block;
        width: 30%;
        padding-bottom: 6px;

        p{
          font-size: 12px;
        }

        img{
          width: 100%;
        }
      }
    }
  }
  //*****为你推荐*****

  //*****商品详情*****
  .product-details{
    padding:15px 15px;
    box-sizing: border-box;
    margin-bottom: 10px;
    width: 100%;
    height: auto;

    img{
      width: 100%;
    }
  }
  //*****商品详情*****

  //*****商品导航*****
  .goods-action{
    position: fixed;
    bottom:0;
    left:0;
    z-index: 10;
    width: 100%;
    height: 50px;
    //padding-left:15px;
    //box-sizing: border-box;

    .icon_{
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 50px;
      font-size: 10px;
      color: #7A7B82;
      text-align: center;

      i.iconfont{
        font-size: 20px;
      }

      .car-num{
        top: -4px;
        left: 16px;
        background-color: #F54E4E;
        color: #fff;
        font-size: 10px;
        border-radius:8px;
        font-style: normal;
        padding: 1px 3px;
      }
    }

    .btn{
      display: inline-block;
      width: 100%;
      height: 100%;
      color: #fff;
      line-height: 50px;
      font-size: 15px;
      background-color: #B989F4;
    }

    .buy{
      background: -webkit-linear-gradient(left, #A182FF , #7E82F6);
    }

  }
  //*****商品导航*****

  //*****弹出层*****
  .pop-box{

    .pop-msg{
      padding:  15px 12px;

      //title
      .title{
        display: flex;

        img{
          width: 100px;
          height: 100px;
          vertical-align: middle;
        }

        div{
          display: flex;
          flex-direction: column;
          justify-content: center;
          height: 100px;
          width: calc(100% - 100px);
          margin-left: 12px;

          p:nth-child(1){
            color: #F54E4E;
            font-size: 17px;
          }

          p:nth-child(2){
            color: #7A7B82;
            font-size: 14px;
          }

          i{
            position: absolute;
            top: 0;
            right: 0;
            margin: 15px 12px;
          }
        }
      }
      //title

      //cell
      .pop-cell{
        .cell-active{
          color: #7E82F6 !important;
          border-color: #7E82F6 !important;
        }

        div{

          p:nth-child(1){
            margin-top: 18px;
          }

          p:nth-child(2) {
            display: flex;
            flex-wrap: wrap;

            span{
              height: 28px;
              line-height: 28px;
              border: 1px solid #C5C5CC;
              color: #7A7B82;
              padding:0 12px;
              margin:8px 12px 8px 0;
              border-radius:4px;
            }
          }
        }
        .color{

        }

        .type{
          p:nth-child(2) {

            span{
              padding:0;
              width: 52px;

              text-align: center;
            }
          }
        }

        .number{
          p{
            display: flex;
            justify-content: space-between;
            line-height: 30px;


            span:nth-child(2){
              i{
                display: inline-block;
                width: 28px;
                height: 28px;
                line-height: 28px;
                border: 1px solid #C5C5CC;
                float: right;
                color: #7A7B82;
                text-align: center;
              }

              i:nth-child(1){
                margin-left:-1px;
              }

              i:nth-child(2){
                min-width: 36px;
                color: #45454D;
                font-style: normal;

              }

              i:nth-child(3){
                background-color: #F7F8FA;
                margin-right:-1px;
                border-top:1px solid #E8E8E8;
                border-bottom:1px solid #E8E8E8;
                border-left:1px solid #E8E8E8;
                border-right: 1px solid #C5C5CC;
              }
            }
          }
        }

        .cell-none{
          color: #ccc !important;
          background-color: #FAFAFA !important;
          border-color: #E6E6E6 !important;
          //pointer-events: none;
        }

        .cell-active-border{
          //color: #7E82F6 !important;
          border-color: #7E82F6 !important;
        }

        .cell-active-text{
          color: #7E82F6 !important;
        }
      }
      //cell
    }

    .pop-btn{
      display: flex;
      height: 50px;
      line-height: 50px;
      color: #fff;
      font-size: 15px;

      span{
        background: -webkit-linear-gradient(left,#A9B9FF,#BEA7FF);
        flex:1;
      }

      span:nth-child(2){
        background: -webkit-linear-gradient(left,#A182FF,#7E82F6);
      }
    }
  }

  .arguments-box{

    p{
      height: 44px;
      line-height: 44px;
      color: #333;
    }

    .msg{
      height: 335px;
      padding-left:15px;
      box-sizing: border-box;

      ul{
        width: 100%;
        height:auto;

        li{
          display: flex;
          width: 100%;
          min-height: 44px;
          height: auto;
          //line-height: 44px;
          color: #333;

          span:nth-child(1){
            width:20%;
            height:100%;
            flex-wrap: wrap;
            color: #7A7B82;
            padding: 15px 0;
          }

          span:nth-child(2){
            width: 80%;
            height: 100%;
            padding-top: 15px;
          }
        }
      }
    }

    .btn{
      padding:8px 15px;

      span{
        background: -webkit-linear-gradient(right,#A182FF,#7E82F6);
        width: 100%;
        height: 44px;
        line-height: 44px;
        color: #fff;
        border-radius: 24px;
      }
    }
  }

  .coupon-box{
    .msg {
      ul {
        padding-top: 16px;
        height: auto;
        max-height: 320px;
        overflow-y: scroll;

        li {
          background: #FFF3E1;
          height: 82px;
          border-radius: 4px;
          margin-bottom: 12px;

          div.coupon-left {
            flex: 2;
            padding: 10px 15px;
            box-sizing: border-box;

            p {
              height: 26px;
              line-height: 20px;
              font-size: 24px;
              color: #FA7834;

              i {
                font-style: normal;
              }
            }

            p:last-child {
              height: 20px;
              line-height: 10px;
            }
          }

          div.coupon-right {
            flex: 1;
            line-height: 82px;
            border-left: 1px dashed #FFA779;

            img {
              right: 0;
              bottom: 0;
              width: 38px;
            }
          }

          div.coupon-right::before,
          div.coupon-right::after {
            content: '';
            position: absolute;
            top: -7px;
            left: -7px;
            background: #fff;
            width: 14px;
            height: 14px;
            border-radius: 50%;
          }

          div.coupon-right::after {
            top: unset;
            bottom: -7px;
          }
        }
      }
    }
  }
  //*****弹出层*****


}
